$input_color: #e6e6e6;
$input_font_weight:300;
$checkbox_img:'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="-10 -18 100 135"><circle cx="50" cy="50" r="50" fill="none" stroke="#ededed" stroke-width="3"/></svg>';
$checkbox_checked_img:'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="-10 -18 100 135"><circle cx="50" cy="50" r="50" fill="none" stroke="#bddad5" stroke-width="3"/><path fill="#5dc2af" d="M72 25L42 71 27 56l-4 4 20 20 34-52z"/></svg>';

.todos {
  margin: 0;
  list-style-type: none;
  padding: 0;
  border-top: 1px solid #ccc;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 10px 30px #ccc;
  position: relative;
  transition: .3s;

  & input::-webkit-input-placeholder {
    font-style: italic;
    font-weight: $input_font_weight;
    color: $input_color;
  }
  & input::-moz-placeholder {
    font-style: italic;
    font-weight: $input_font_weight;
    color: $input_color;
  }
  & input::-ms-input-placeholder {
    font-style: italic;
    font-weight: $input_font_weight;
    color: $input_color;
  }

  & > li {
    cursor: pointer;
    font-size: 24px;
    line-height: 36px;
    padding: 12px 20px;
    border-bottom: 1px solid #ededed;
    position: relative;

    &:nth-child(2n) {
      background: #f6f6f6;
    }

    &:last-child {
      border-bottom: none;
    }

    &:first-child {
      background: #fff;
      & > input {
      font-size: 24px;
      padding: 10px;
      border: none;
      width: 100%;
      background: transparent;
      }
    }

    & > input[type=checkbox] {
      display: inline-block;
      vertical-align: middle;
      text-align: center;
      width: 40px;
      height: auto;
      position: absolute;
      top: 10px;
      bottom: 0;
      margin: auto 0;
      border: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      &:after {
        content: url($checkbox_img);
      }
    }
    & > time{
      position: absolute;
      right: 60px;
      top: 15px;
      font-size: 9pt;
    }
    & > label {
      display: block;
      vertical-align: middle;
      padding-left: 50px;
      letter-spacing: 2;
    }

    & > button {
      position: absolute;
      right: 15px;
      top: 15px;
      height: 30px;
      width: 30px;
      border: none;
      background: none;
      display: none;
      &:after, &:before {
        content: "";
        position: absolute;
        top: 15px;
        left: 0;
        transform: rotateZ(45deg);
        height: 1px;
        width: 30px;
        background: #cc9a9a;
      }
      &:before {
        transform: rotateZ(-45deg);
      }

    }

    &.checked {
      & > input[type=checkbox] {
        &:after {
          content: url($checkbox_checked_img);
        }
      }

      & > label {
        color: #d9d9d9;
        text-decoration: line-through;
      }
    }

    &:hover {
      & > button {
        display: block;
      }
    }
  }
}